<template>
	<vCommonPage :type="1" title="清单查询" class="dybg">
		<div slot="customContent" style="width: 100%;height: 100%;">
			<div class="CenterBox">
				<div class="left flex">
					<div class="patientName">患者：{{$store.state.user.userinfo.patientName}}</div>
				</div>
			</div>
			<div class="conentBox">
				<div class="conentBoxItem" v-for="(item,index) in cardChouseList" @click="gotoChcekIdCard(item)"
					:key="'o'+index">
					<img :src="item.url" class="conentBoxItemImg" />
					<div class="conentBoxItemName">{{item.name}}</div>
				</div>
			</div>
			<div class="bottomBox">
				<el-button type="primary" class="BtnTextHome" @click="goBack()">返回</el-button>
				<el-button type="primary" class="BtnTextHome" @click="goBackHome()">首页</el-button>
			</div>
		</div>
	</vCommonPage>
</template>
<script>

	export default {
		name: "qdcx",
		data() {
			return {
				cardChouseList: [{
					url: require('../../assets/images/qdcx/mzqd.png'),
					name: '门诊清单',
					type: 'mzqd'
				}, {
					url: require('../../assets/images/qdcx/zyqd.png'),
					name: '住院清单',
					type: 'zyqd'
				}]
			};
		},
		methods: {
			ReckonTime() {},
			//前往清单页面
			gotoChcekIdCard(item) {
				console.log(item)
				if (item.type == "mzqd") {
					this.$router.push({
						name: "mzqdIndex",
						query: {
							title: '门诊清单',
							code: 'mzqd'
						}
					})
				} else if (item.type == 'zyqd') {
					this.$router.push({
						name: "mzqdIndex",
						query: {
							title: '住院清单',
							code: 'zyqd'
						}
					})
				}

			},

		},
		computed: {

		},
		components: {},
		mounted() {},
		created() {
		}
	};
</script>
<style scoped rel="stylesheet/scss" lang="scss">
	@import "../../assets/css/qdcx/qdcxXzlx.scss";

</style>
